<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>ReflectionFunctionAbstract 类</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="reflectionfunction.tostring.html">« ReflectionFunction::__toString</a></li>
      <li style="float: right;"><a href="reflectionfunctionabstract.clone.html">ReflectionFunctionAbstract::__clone »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.reflection.html">反射</a></li>
    <li>ReflectionFunctionAbstract 类</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="class.reflectionfunctionabstract" class="reference">

 <h1 class="title">ReflectionFunctionAbstract 类</h1>
 

 <div class="partintro"><p class="verinfo">(PHP 5 &gt;= 5.2.0, PHP 7, PHP 8)</p>


  <div class="section" id="reflectionfunctionabstract.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    <span class="classname"><a href="class.reflectionfunction.html" class="classname">ReflectionFunction</a></span> 的父类，详情请阅读它的描述。
   </p>
  </div>


  <div class="section" id="reflectionfunctionabstract.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass">
     
    </div>

    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">abstract</span>
      <span class="modifier">class</span> <strong class="classname">ReflectionFunctionAbstract</strong>
     </span>

     <span class="oointerface"><span class="modifier">implements</span> 
       <a href="class.reflector.html" class="interfacename">Reflector</a></span> {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 属性 */</div>
    <div class="fieldsynopsis">
     <span class="modifier">public</span>
     <span class="type">string</span>
      <var class="varname"><a href="class.reflectionfunctionabstract.html#reflectionfunctionabstract.props.name">$<var class="varname">name</var></a></var>;</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">private</span> <span class="methodname"><a href="reflectionfunctionabstract.clone.html" class="methodname">__clone</a></span>(): <span class="type"><span class="type void">void</span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getattributes.html" class="methodname">getAttributes</a></span>(<span class="methodparam"><span class="type">?</span><span class="type"><span class="type">string</span><span class="type"></span></span> <code class="parameter">$name</code><span class="initializer"> = <strong><code>null</code></strong></span></span>, <span class="methodparam"><span class="type">int</span> <code class="parameter">$flags</code><span class="initializer"> = 0</span></span>): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getclosurescopeclass.html" class="methodname">getClosureScopeClass</a></span>(): <span class="type"><span class="type">?</span><span class="type"><a href="class.reflectionclass.html" class="type ReflectionClass">ReflectionClass</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getclosurethis.html" class="methodname">getClosureThis</a></span>(): <span class="type"><span class="type">?</span><span class="type">object</span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getclosureusedvariables.html" class="methodname">getClosureUsedVariables</a></span>(): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getdoccomment.html" class="methodname">getDocComment</a></span>(): <span class="type"><span class="type">string</span>|<span class="type"><span class="type false">false</span></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getendline.html" class="methodname">getEndLine</a></span>(): <span class="type"><span class="type">int</span>|<span class="type"><span class="type false">false</span></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getextension.html" class="methodname">getExtension</a></span>(): <span class="type"><span class="type">?</span><span class="type"><a href="class.reflectionextension.html" class="type ReflectionExtension">ReflectionExtension</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getextensionname.html" class="methodname">getExtensionName</a></span>(): <span class="type"><span class="type">string</span>|<span class="type"><span class="type false">false</span></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getfilename.html" class="methodname">getFileName</a></span>(): <span class="type"><span class="type">string</span>|<span class="type"><span class="type false">false</span></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getname.html" class="methodname">getName</a></span>(): <span class="type">string</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getnamespacename.html" class="methodname">getNamespaceName</a></span>(): <span class="type">string</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getnumberofparameters.html" class="methodname">getNumberOfParameters</a></span>(): <span class="type">int</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getnumberofrequiredparameters.html" class="methodname">getNumberOfRequiredParameters</a></span>(): <span class="type">int</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getparameters.html" class="methodname">getParameters</a></span>(): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getreturntype.html" class="methodname">getReturnType</a></span>(): <span class="type"><span class="type">?</span><span class="type"><a href="class.reflectiontype.html" class="type ReflectionType">ReflectionType</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getshortname.html" class="methodname">getShortName</a></span>(): <span class="type">string</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getstartline.html" class="methodname">getStartLine</a></span>(): <span class="type"><span class="type">int</span>|<span class="type"><span class="type false">false</span></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.getstaticvariables.html" class="methodname">getStaticVariables</a></span>(): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.gettentativereturntype.html" class="methodname">getTentativeReturnType</a></span>(): <span class="type"><span class="type">?</span><span class="type"><a href="class.reflectiontype.html" class="type ReflectionType">ReflectionType</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.hasreturntype.html" class="methodname">hasReturnType</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.hastentativereturntype.html" class="methodname">hasTentativeReturnType</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.innamespace.html" class="methodname">inNamespace</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.isclosure.html" class="methodname">isClosure</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.isdeprecated.html" class="methodname">isDeprecated</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.isgenerator.html" class="methodname">isGenerator</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.isinternal.html" class="methodname">isInternal</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.isuserdefined.html" class="methodname">isUserDefined</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.isvariadic.html" class="methodname">isVariadic</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.returnsreference.html" class="methodname">returnsReference</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">abstract</span> <span class="modifier">public</span> <span class="methodname"><a href="reflectionfunctionabstract.tostring.html" class="methodname">__toString</a></span>(): <span class="type"><span class="type void">void</span></span></div>

   }</div>


  </div>

  

  <div class="section" id="reflectionfunctionabstract.props">
   <h2 class="title">属性</h2>
   <dl>
    
     <dt id="reflectionfunctionabstract.props.name"><var class="varname">name</var></dt>

     <dd>

      <p class="para">
       函数名。只读，尝试赋值的时候将会抛出 <span class="classname"><a href="class.reflectionexception.html" class="classname">ReflectionException</a></span>。
      </p>
     </dd>

    
   </dl>

  </div>



 </div>

 




























































































































































































































<h2>目录</h2><ul class="chunklist chunklist_reference"><li><a href="reflectionfunctionabstract.clone.html">ReflectionFunctionAbstract::__clone</a> — 复制函数</li><li><a href="reflectionfunctionabstract.getattributes.html">ReflectionFunctionAbstract::getAttributes</a> — Gets Attributes</li><li><a href="reflectionfunctionabstract.getclosurescopeclass.html">ReflectionFunctionAbstract::getClosureScopeClass</a> — Returns the scope associated to the closure</li><li><a href="reflectionfunctionabstract.getclosurethis.html">ReflectionFunctionAbstract::getClosureThis</a> — 返回本身的匿名函数</li><li><a href="reflectionfunctionabstract.getclosureusedvariables.html">ReflectionFunctionAbstract::getClosureUsedVariables</a> — Returns an array of the used variables in the Closure</li><li><a href="reflectionfunctionabstract.getdoccomment.html">ReflectionFunctionAbstract::getDocComment</a> — 获取注释内容</li><li><a href="reflectionfunctionabstract.getendline.html">ReflectionFunctionAbstract::getEndLine</a> — 获取结束行号</li><li><a href="reflectionfunctionabstract.getextension.html">ReflectionFunctionAbstract::getExtension</a> — 获取扩展信息</li><li><a href="reflectionfunctionabstract.getextensionname.html">ReflectionFunctionAbstract::getExtensionName</a> — 获取扩展名称</li><li><a href="reflectionfunctionabstract.getfilename.html">ReflectionFunctionAbstract::getFileName</a> — 获取文件名称</li><li><a href="reflectionfunctionabstract.getname.html">ReflectionFunctionAbstract::getName</a> — 获取函数名称</li><li><a href="reflectionfunctionabstract.getnamespacename.html">ReflectionFunctionAbstract::getNamespaceName</a> — 获取命名空间</li><li><a href="reflectionfunctionabstract.getnumberofparameters.html">ReflectionFunctionAbstract::getNumberOfParameters</a> — 获取参数数目</li><li><a href="reflectionfunctionabstract.getnumberofrequiredparameters.html">ReflectionFunctionAbstract::getNumberOfRequiredParameters</a> — 获取必须输入参数个数</li><li><a href="reflectionfunctionabstract.getparameters.html">ReflectionFunctionAbstract::getParameters</a> — 获取参数</li><li><a href="reflectionfunctionabstract.getreturntype.html">ReflectionFunctionAbstract::getReturnType</a> — Gets the specified return type of a function</li><li><a href="reflectionfunctionabstract.getshortname.html">ReflectionFunctionAbstract::getShortName</a> — 获取函数短名称</li><li><a href="reflectionfunctionabstract.getstartline.html">ReflectionFunctionAbstract::getStartLine</a> — 获取开始行号</li><li><a href="reflectionfunctionabstract.getstaticvariables.html">ReflectionFunctionAbstract::getStaticVariables</a> — 获取静态变量</li><li><a href="reflectionfunctionabstract.gettentativereturntype.html">ReflectionFunctionAbstract::getTentativeReturnType</a> — Returns the tentative return type associated with the function</li><li><a href="reflectionfunctionabstract.hasreturntype.html">ReflectionFunctionAbstract::hasReturnType</a> — Checks if the function has a specified return type</li><li><a href="reflectionfunctionabstract.hastentativereturntype.html">ReflectionFunctionAbstract::hasTentativeReturnType</a> — Returns whether the function has a tentative return type</li><li><a href="reflectionfunctionabstract.innamespace.html">ReflectionFunctionAbstract::inNamespace</a> — 检查是否处于命名空间</li><li><a href="reflectionfunctionabstract.isclosure.html">ReflectionFunctionAbstract::isClosure</a> — 检查是否是匿名函数</li><li><a href="reflectionfunctionabstract.isdeprecated.html">ReflectionFunctionAbstract::isDeprecated</a> — 检查是否已经弃用</li><li><a href="reflectionfunctionabstract.isgenerator.html">ReflectionFunctionAbstract::isGenerator</a> — 判断函数是否是一个生成器函数</li><li><a href="reflectionfunctionabstract.isinternal.html">ReflectionFunctionAbstract::isInternal</a> — 判断函数是否是内置函数</li><li><a href="reflectionfunctionabstract.isuserdefined.html">ReflectionFunctionAbstract::isUserDefined</a> — 检查是否是用户定义</li><li><a href="reflectionfunctionabstract.isvariadic.html">ReflectionFunctionAbstract::isVariadic</a> — Checks if the function is variadic</li><li><a href="reflectionfunctionabstract.returnsreference.html">ReflectionFunctionAbstract::returnsReference</a> — 检查是否返回引用</li><li><a href="reflectionfunctionabstract.tostring.html">ReflectionFunctionAbstract::__toString</a> — 字符串化</li></ul>
</div>
</div></div></body></html>